package com.luo.stock.job;

import com.luo.stock.service.StockTimerTaskService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author 奥观海
 * @Date 2024/9/21
 */
@Component
public class stockXlljob {
    @Autowired
    private StockTimerTaskService stockTimerTaskService;

    /**
     * 定时采集国内大盘
     */
    @XxlJob("getInnerMarketInfo")
    public void getInnerMarketInfo(){
        stockTimerTaskService.getInnerMarketInfo();
    }
    /**
     * 定时采集国外大盘
     */
    @XxlJob("getOuterMarketInfo")
    public void getOuterMarketInfo(){
        stockTimerTaskService.getOuterMarketInfo();
    }
    /**
     * 定时采集国内个股
     */
    @XxlJob("getInnerStockInfo")
    public void getInnerStockInfo(){
        stockTimerTaskService.getInnerStockInfo();
    }
    /**
     * 定时采集国内板块
     */
    @XxlJob("getInnerStockBlockRtInfo")
    public void getInnerStockBlockRtInfo(){
        stockTimerTaskService.getInnerStockBlockRtInfo();
    }
}
